﻿using UnityEngine;
using System.Collections;

public class SingleClass<T> where T: new(){
	static T instance;
	public static T Instance{
		get{
			if (instance == null)
				instance = new T ();
			return instance;
		}
	}
	public virtual void Begin(){
	}
}
